<h4>KARTU RENCANA STUDI &raquo; <span class="current_page">ENTRI KARTU RENCANA STUDI</span></h4>

            <!-- Begin three column window -->
<div class="onecolumn" style="padding-bottom:20px">
    <div class="header">
    	<span><b>ENTRI KARTU RENCANA STUDI</b> : SEMESTER <?php echo $kontrol->SEMESTER.' '.$kontrol->TAHUN_AJARAN ?></span>
        <div class="switch" style="width:200px; padding-top:14px">
    		<table width="200px" cellpadding="0" cellspacing="0">
    		<tbody>
    			<tr>
    				<td align="right">
    					<img src="<?php echo base_url().'images/tambah.png' ?>" class="mid_align" /> <a title="Klik untuk tambah matakuliah baru" href="<?php echo base_url().'siam/tambah-mk.html' ?>">TAMBAH MATAKULIAH</a>
    				</td>
                </tr>
    		</tbody>
    		</table>
    	</div>
    </div>
    <br class="clear"/>
    <div class="content">
       <table align="left">
            <tr>
                <td><b>IP semester lalu</b></td>
                <td>:</td>
                <td><?php if($getDataKhs): ?><?php echo $this->gpa_com->ips($getDataKhs,'NILAI','SKS'); ?><?php else: ?>0.00<?php endif; ?></td>
            </tr>
       </table>
       <table class="data" width="100%" cellpadding="0" cellspacing="0">
            <thead>
            <tr>
                <th width="30">No.</th>
                <th width="70">Kode MK</th>
                <th width="310">Nama MK</th>
                <th width="40">SKS</th>
                <th width="60">Kelas</th>
                <th width="60">BATAL</th>
                <th width="200">Keterangan</th>
            </tr>
            </thead>

            <tbody>

            <?php $jumlah_sks_diambil = 0; ?>

            <?php if($krs): ?>
            <?php $seq_number = 1; ?>
            <?php foreach($krs as $valueKrs): ?>
            <tr align="center">
              <td align="right"><?php echo $seq_number ?>.</td>
              <td><?php echo strtoupper($valueKrs->KODE_MK); ?></td>
              <td align="left" style="padding-left:10px"><?php echo $valueKrs->NAMA_MK; ?></td>
              <td><?php echo $valueKrs->SKS ?></td>
              <td><?php echo $valueKrs->KELAS ?></td>
              <td><a href="<?php echo base_url().'siam/hapus-mk/'.$valueKrs->ID.'.html' ?>"><img src="<?php echo base_url().'images/batal-button.png' ?>" style="border-style:none" /></a></td>
              <td align="left" style="padding-left:10px"></td>
            </tr>
            <?php $seq_number++; ?>
            <?php $jumlah_sks_diambil = $jumlah_sks_diambil + $valueKrs->SKS; ?>
            <?php endforeach; ?>
            <?php endif; ?>

            <tr align="center">
              <td height="20"></td>
              <td></td>
              <td align="right"><b>Jumlah SKS</b></td>
              <td><?php echo $jumlah_sks_diambil; ?></td>
              <td></td>
              <td align="left">&nbsp;</td>
              <td></td>
            </tr>
            <tr align="center">
              <td height="20"></td>
              <td></td>
              <td align="right"><b>Jumlah Maksimum SKS</b></td>
              <td><?php echo $this->gpa_com->maxSksDiambil($getDataKhs,'NILAI','SKS'); ?></td>
              <td></td>
              <td align="left">&nbsp;</td>
              <td></td>
            </tr>
            </tbody>
       </table>
       <br />
    </div>
</div>